﻿namespace EduFormManager.Models
{
    public class Query : Entity
    {
        

        public virtual string Title { get; set; }
        public virtual string Content { get; set; }
        public virtual Allform AllForm { get; set; }
        public virtual Credentials Credentials { get; set; }

        public override string ToString()
        {
            return this.Title; //string.Format("{0} ({1})", this.Title, this.Content);
        }

        protected bool Equals(Query other)
        {
            return string.Equals(Title, other.Title) && string.Equals(Content, other.Content) && Equals(AllForm, other.AllForm);
        }
    }
}
